package com.michale.common.constants;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author Michale
 * @apiNote 分页常量
 */
public class PageConstant {

    @ApiModelProperty("当前页码")
    public static final String PAGE_NUM = "pageNum";

    @ApiModelProperty("每页显示记录数")
    public static final String PAGE_SIZE = "pageSize";
    @ApiModelProperty("排序字段")
    public static final String ORDER_FIELD = "orderByColumn";
    @ApiModelProperty("排序方式")
    public static final String ORDER = "order";
    @ApiModelProperty("排序方式")
    public static final String ASC = "asc";
    @ApiModelProperty("排序方式")
    public static final String DESC = "desc";
    @ApiModelProperty("排序的方向 desc 或者asc")
    public static final String IS_ASC = "isAsc";
    @ApiModelProperty("前端升序类型")
    public static final String ASCENDING = "ascending";
    @ApiModelProperty("前端降序类型")
    public static final String DESCENDING = "descending";
    @ApiModelProperty("分页参数合理化")
    public static final Boolean REASONABLE = true;
}
